package org.feng.service.impl;

import org.feng.entity.pojo.Log;
import org.feng.service.AsyncService;
import org.feng.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncServiceImpl implements AsyncService {
    @Autowired
    private LogService logService;

    @Override
    @Async
    public void saveLog(Log log) {
        logService.save(log);
    }
}
